<?php include("header.php"); ?>
	<div id="layout">
		<div class="a_index">
			<div class="pic_news box">
					<div id="fader">
						<ul>
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=207 ORDER BY `essay_updatetime` DESC LIMIT 0,5";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];

?>
							<li><a href="./?view-<?=$essayid?>.htm"><img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" width="318px" height="258px" alt="<?=utf8Substr($title,'0','40')?>" /></a></li>
<?php } ?>
						</ul>
					</div>
			</div>
			<div class="first_news box">
				<div class="title tab_title">
					<span><a href="./?class-<?=getinfo(211,'englishname','categories')?>.htm">先锋专访</a></span>
					<span><a href="./?class-<?=getinfo(212,'englishname','categories')?>.htm">青年视角</a></span>
				</div>

				<div class="pic_list_main">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=211 ORDER BY `essay_updatetime` DESC LIMIT 0,2";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];
	$intro=$row['essay_intro'];

?>
					<div class="pic_list">
						<a href="./?view-<?=$essayid?>.htm"><img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="" /></a>
						<div class="pic_note">
							<a href="./?view-<?=$essayid?>.htm"><?=utf8Substr($title,'0','70')?></a>
							<p><?=utf8Substr($intro,'0','80')?></p>
						</div>
					</div>		
<?php } ?>					
				</div>
				<div class="pic_list_main" style="display:none;">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=212 ORDER BY `essay_updatetime` DESC LIMIT 0,2";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];
	$intro=$row['essay_intro'];

?>
					<div class="pic_list">
						<a href="./?view-<?=$essayid?>.htm"><img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="" /></a>
						<div class="pic_note">
							<a href="./?view-<?=$essayid?>.htm"><?=utf8Substr($title,'0','70')?></a>
							<p><?=utf8Substr($intro,'0','80')?></p>
						</div>
					</div>		
<?php } ?>					
				</div>
				
			</div>
		</div>
		<div class="b_index">
			<p class="news_title" style="line-height:24px;"><a href="./?class-<?=getinfo(209,'englishname','categories')?>.htm">重要通知</a></p>
			<div class="scroll_news box">
				<div class="scroll">
					<marquee onmouseout="this.start()" onmouseover="this.stop()" scrollamount="4">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=209 ORDER BY `essay_updatetime` DESC LIMIT 0,6";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];

?>
						<a target="" href="./?view-<?=$essayid?>.htm"><?=utf8Substr($title,'0','120')?></a>
<?php } ?>
					</marquee>
				</div>
			</div>
			<p class="news_title"><a href="./?class-<?=getinfo(208,'englishname','categories')?>.htm">最新团讯</a></p>
			<div class="school_news box">
				<div class="s_list news_list">
					<ul>
						<?=listnewsbycid('208','60','9')?>
					</ul>
				</div>
			</div>
			<p class="news_title"><a href="./?class-<?=getinfo(213,'englishname','categories')?>.htm">校园生活</a></p>
			<div class="college_news box">
				<div class="s_list news_list">
					<ul>
						<?=listnewsbycid('213','63','6')?>
					</ul>
				</div>
			</div>
		</div>
		<div class="c_index">
<!--
			<div class="t_pic box">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=244 ORDER BY `essay_updatetime` DESC LIMIT 0,1";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_author'];

?>
			<a href="<?=$content?>" target="_blank"><img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="<?=utf8Substr($title,'0','70')?>" /></a>
<?php } ?>
			</div>
-->
			<div class="topic_news box">
				<div class="title">
					<span><a href="./?class-<?=getinfo(210,'englishname','categories')?>.htm">精彩专题</a></span>
				</div>
				<div class="s_list">
					<ul>
						<?=listnewsbycid('210','43','4')?>
					</ul>
				</div>
			</div>
			<div class="fuwu box">
				<div class="title">
					<span><a href="./?class-<?=getinfo(216,'englishname','categories')?>.htm">志愿服务</a></span>
				</div>
				<div class="s_list">
					<ul>
						<?=listnewsbycid('216','45','5')?>
					</ul>
				</div>
			</div>
			<div class="shehui box">
				<div class="title">
					<span><a href="./?class-<?=getinfo(217,'englishname','categories')?>.htm">社会实践</a></span>
				</div>
				<div class="s_list">
					<ul>
						<?=listnewsbycid('217','45','5')?>
					</ul>
				</div>
			</div>
		</div>
		<div class="clear"></div>
		<div class="flash box clear">
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=238 ORDER BY `essay_updatetime` DESC LIMIT 0,1";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_author'];

?>
			<a href="<?=$content?>" target="_blank"><img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="<?=utf8Substr($title,'0','70')?>" /></a>
<?php } ?>
		</div>
		<div class="sociaty box">
			<div class="title">
				<span><a href="./?class-<?=getinfo(214,'englishname','categories')?>.htm">风采院系</a></span>
			</div>
			<div class="s_list">
				<ul>
					<?=listnewsbycid('214','80','10')?>
				</ul>
			</div>
		</div>
		<div class="school box">
			<div class="title">
				<span><a href="./?class-<?=getinfo(215,'englishname','categories')?>.htm">缤纷团体</a></span>
			</div>
			<div class="s_list">
				<ul>
					<?=listnewsbycid('215','56','10')?>
				</ul>
			</div>
		</div>
		<div class="download box">
			<div class="title">
				<span><a href="./?class-<?=getinfo(218,'englishname','categories')?>.htm">媒体广角</a></span>
			</div>
			<div class="s_list">
				<ul>
					<?=listnewsbycid('218','43','10')?>
				</ul>
			</div>
		</div>
		<div class="camera box">
			<div class="title">
				<span><a href="./?class-<?=getinfo(220,'englishname','categories')?>.htm">镜头民大</a>
				</span>
			</div>
			<div class="img_list">
				<ul>
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=220 ORDER BY `essay_updatetime` DESC LIMIT 0,4";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];

?>
					<li class="img_list_inner"><a title="<?=utf8Substr($title,'0','40')?>" href="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>"><img src="../youngth/<?=getinfobywhere('attachment','path',"attachment_essayid=$essayid")?>" alt="" /></a></li>
<?php } ?>
				
<?php
$sqlimg="SELECT * FROM ".tbname('essay')." WHERE  `essay_status`='pub' AND `essay_categoryid`=220 ORDER BY `essay_updatetime` DESC LIMIT 0,4";
$resimg=mysql_query($sqlimg);
while($row=mysql_fetch_array($resimg)){
    $essayid=$row['essay_id'];
    $title=$row['essay_title'];
    $content=$row['essay_content'];

?>
					<li><span class="img_list_w"><a href="./?view-<?=$essayid?>.htm"><?=utf8Substr($title,'0','30')?></a></span></li>
<?php } ?>
				</ul>
			</div>
		</div>
		<div class="other box">
			<div class="title">
				<span><a href="./?class-<?=getinfo(221,'englishname','categories')?>.htm">下载专区</a></span>
			</div>
			<div class="s_list">
				<ul>
					<?=listnewsbycid('221','43','6')?>
				</ul>
			</div>
		</div>
<?php include("footer.php"); ?>
